<?php
require_once("classes/db_functions.php");

function get_ViewStatus(){
	$db = new db_functions();
	$res = $db->select2("SELECT * from komitenti_view_status ORDER BY id");
	$ret = array();
	if($res !== false){
		foreach ($res as $k=>$v){
			$ret["id"][$k] = $v["id"];
			$ret["name"][$k] = $v["name"];
			if($id == $v["id"]){
				$ret["selected"][$k] = " selected";
			}else{
				$ret["selected"][$k] = "";
			}
		}
	}
	return $ret;
}

?>